package com.huqing.icu.dto;

import com.huqing.icu.base.PageDto;
import com.huqing.icu.enums.PostApproveStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Description 社区帖子查询dto
 * @Author huqing
 * @Date 2025/7/7 21:59
 **/
@Schema(name = "CommunityPostQueryDto", description = "社区帖子查询dto")
@Data
public class CommunityPostQueryDto extends PageDto {

    @Schema(name = "id", description = "主键ID")
    private Long id;

    @Schema(name = "userId", description = "用户ID")
    private Long userId;

    @Schema(name = "titleOrContent", description = "标题或内容")
    private String titleOrContent;

    @Schema(name = "title", description = "标题")
    private String title;

    @Schema(name = "content", description = "内容")
    private String content;

    @Schema(name = "publishCity", description = "发布城市")
    private String publishCity;

    /**
     * @see PostApproveStatusEnum
     */
    @Schema(name = "approveStatus", description = "审核状态 20-审核通过 30-不通过")
    private Integer approveStatus;

    @Schema(name = "queryStartDate", description = "查询起始发布日期")
    private String queryStartPublishDate;

    @Schema(name = "queryEndDate", description = "查询结束发布日期")
    private String queryEndPublishDate;

    @Schema(name = "sortType", description = "排序类型")
    private Integer sortType;

}
